﻿using System;
using UnityEngine;

// Token: 0x02000123 RID: 291
[AddComponentMenu("RVP/C#/Camera/Basic Camera Input", 1)]
[DisallowMultipleComponent]
public class BasicCameraInput : MonoBehaviour
{
	// Token: 0x0600055F RID: 1375 RVA: 0x0002960B File Offset: 0x0002780B
	private void Start()
	{
		this.cam = base.GetComponent<CameraControl>();
	}

	// Token: 0x06000560 RID: 1376 RVA: 0x0002961C File Offset: 0x0002781C
	private void FixedUpdate()
	{
		if (this.cam && !string.IsNullOrEmpty(this.xInputAxis) && !string.IsNullOrEmpty(this.yInputAxis))
		{
			this.cam.SetInput(Input.GetAxis(this.xInputAxis), Input.GetAxis(this.yInputAxis));
		}
	}

	// Token: 0x04000770 RID: 1904
	private CameraControl cam;

	// Token: 0x04000771 RID: 1905
	public string xInputAxis;

	// Token: 0x04000772 RID: 1906
	public string yInputAxis;
}
